import Vue from "vue";
import api from '@/service/index'
export default function getHistory(params){
    return new Promise((resolve,reject)=>{
        Vue.axios.get(api.history,{
            params
        })
        .then(res=>{
            resolve(res)
        })
        .catch(e=>{
            console.log(e)
            reject(e)
        })
    })
}